package cn.itcast.service;

import cn.itcast.pojo.user_address;

import java.util.List;

public interface user_addressService {
//    List<user_address> getAlladress();
      boolean addUser_address(user_address userAddress);  //插入收货地址


    List<user_address> findAllAddress(String openId);

    boolean updateUser_address(user_address user_address);

    boolean delectUser_address(user_address user_address);

    user_address findOneUser_address(Integer addressId);

    user_address getDefaultAddress(String openId);

    boolean updateDefaultAddress(int addressId, String openId);

    boolean isArea(String town);

    boolean getCode(String phone);
}
